import { defineStore } from 'pinia';

export const useMinecraftStore = defineStore({
  id: 'minecraft',
  state: () => ({
    routes: [
      {
        path: 'test',
        name: 'Test',
        title: 'test',
      },
    ],
  }),
  getters: {
    getRoutes(state) {
      return state.routes || [];
    },
  },
  actions: {
    updateRoutes(routes) {
      this.routes = routes;
    },
  },
});
